<script type="text/javascript">        

$(document).ready(function(){                                  

    $("#suppliers_select").change(function(){
        window.location.href = '<?=site_url('admin/suppliers/view/')?>/' + $(this).val();
    });  

    $(".cancel_trigger").click(function(){   
        window.location.href = '<?=site_url('admin/suppliers/view/'.$item["id_Supplier"])?>';
    });

});

</script>

<div id="content">     

    <div class="response">
        <span class="warning">
            You're about to permanently delete this supplier. 
            <div class="buttons_block">
                <a class="button" href="<?=site_url('admin/suppliers/confirm_removal/'.$item["id_Supplier"])?>">CONFIRM DELETION</a>
                <a class="button" href="<?=site_url('admin/suppliers/view/'.$item["id_Supplier"])?>">CANCEL</a>
            </div>
        </span>
    </div>

    <div class="float_block_right">
        <a class="button" href="<?=site_url('admin/suppliers')?>" style="float:right; margin-left:5px">BACK TO LIST</a>
    </div>

    <h1>Delete Confirmation</h1>           

    <div style="width: 40%;" class="float_block">

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Company name</h4>                                    
            <div style="margin-left: 110px;" id="Code_Supplier"><?=$item["Name_Supplier"]?></div>     
        </div> 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Supplier code</h4>                                    
            <div style="margin-left: 110px;" id="Code_Supplier"><?=$item["Code_Supplier"]?></div>     
        </div>  

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Contact Name</h4>                                    
            <div style="margin-left: 110px;" id="ContactName_Supplier"><?=$item["ContactName_Supplier"]?></div>     
        </div>

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Email</h4>                                    
            <div style="margin-left: 110px;" id="Email_Supplier"><?=$item["Email_Supplier"]?></div>     
        </div>

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Phone</h4>                                    
            <div style="margin-left: 110px;" id="Phone_Supplier"><?=$item["Phone_Supplier"]?></div>     
        </div>
    
        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Fax</h4>                                    
            <div style="margin-left: 110px;" id="Fax_Supplier"><?=$item["Fax_Supplier"]?></div>     
        </div>             
    
        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Mobile</h4>                                    
            <div style="margin-left: 110px;" id="Mobile_Supplier"><?=$item["Mobile_Supplier"]?></div>     
        </div>

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Website</h4>                                    
            <div style="margin-left: 110px;" id="WebSite_Supplier"><?=$item["WebSite_Supplier"]?></div>     
        </div>                    
    
    </div>


    <div style="width: 40%;" class="float_block">

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Address</h4>                                    
            <div style="margin-left: 110px;" id="Address_Supplier"><?=nl2br($item["Address_Supplier"])?></div>     
        </div>                 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">City</h4>                                    
            <div style="margin-left: 110px;" id="City_Supplier"><?=$item["City_Supplier"]?></div>     
        </div>                 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">State</h4>                                    
            <div style="margin-left: 110px;" id="State_Supplier"><?=$item["State_Supplier"]?></div>     
        </div>                 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Post Code</h4>                                    
            <div style="margin-left: 110px;" id="PostCode_Supplier"><?=$item["PostCode_Supplier"]?></div>     
        </div>                 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Country</h4>                                    
            <div style="margin-left: 110px;" id="Country_Supplier"><?=$item["Country_Supplier"]?></div>     
        </div>                 

        <div style="width: 100%;" class="float_block">                    
            <h4 style="float: left;">Address 2</h4>                                    
            <div style="margin-left: 110px;" id="Address2_Supplier"><?=nl2br($item["Address2_Supplier"])?></div>     
        </div>                 

    </div>

</div>